﻿<%@ Page Title="" Language="VB"  MasterPageFile="~/Administrator/MasterPage.master" AutoEventWireup="false" CodeFile="menuRight.aspx.vb" Inherits="Administrator_menuRight" %>
<%--EnableEventValidation="false"--%>
<%--<%@ Register assembly="Devart.Data.Oracle.Web, Version=8.4.171.4, Culture=neutral, PublicKeyToken=09AF7300EEC23701" namespace="Devart.Data.Oracle.Web" tagprefix="cc1" %>--%>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            
                <table align="center" border="0" cellspacing="0" width="100%">
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label2" runat="server" CssClass="control" Text="ฝ่าย :" 
                                Visible="False"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlDepartment" runat="server" AutoPostBack="True" 
                                CssClass="control" Height="25px" Visible="False" Width="248px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label1" runat="server" CssClass="control" Text="ชื่อโปรแกรม :" 
                                Visible="False"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlUSerRight" runat="server" AutoPostBack="True" 
                                CssClass="control" style="margin-top: 0px" Visible="False" Width="184px" 
                                Height="25px">
                            </asp:DropDownList>
                            &nbsp;<asp:Button ID="btnShow" runat="server" CssClass="control" Text="ดูข้อมูล" 
                                Visible="False" Width="60px" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" colspan="2">
                            <asp:Button ID="btnEditMenuRight" runat="server" CssClass="control" 
                                Text="แก้ไข" Width="91px" />
                            <asp:Button ID="btnSaveEdit" runat="server" CssClass="control" Text="บันทึก" 
                                Width="91px" />
                            <asp:Button ID="btnCancel" runat="server" CssClass="control" Text="ยกเลิก" 
                                Width="91px" />
                            <asp:Button ID="btnPrint" runat="server" CssClass="control" 
                                Text="กลับไปหน้าแรก" Width="106px" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:GridView ID="gvMenuRight" runat="server" AutoGenerateColumns="False" 
                                CellPadding="4" CssClass="control" ForeColor="#FFCC66" Height="217px" 
                                style="text-align: center; margin-top: 1px;" Width="100%">
                                <FooterStyle BackColor="#E38120" Font-Bold="True" ForeColor="White" />
                                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                <Columns>
                                    <asp:BoundField DataField="ProgramCode" HeaderText="รหัสโปรแกรม" 
                                        ReadOnly="True">
                                    <ItemStyle HorizontalAlign="Left" Width="100px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="ProgramName" HeaderText="ชื่อโปรแกรม" 
                                        ReadOnly="True">
                                    <ItemStyle HorizontalAlign="Left" Width="250px" />
                                    </asp:BoundField>
                                    <asp:CommandField SelectText="เลือกทั้งหมด" ShowSelectButton="True">
                                    <ItemStyle Width="95px" />
                                    </asp:CommandField>
                                    <asp:CheckBoxField DataField="ISSHOW" HeaderText="การเข้าถึง" ReadOnly="True">
                                    <ItemStyle Width="80px" />
                                    </asp:CheckBoxField>
                                    <asp:TemplateField HeaderText="การเข้าถึง">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkIsShow" runat="server" 
                                                Checked='<%# Eval("ISSHOW")= true %>' />
                                        </ItemTemplate>
                                        <ItemStyle Width="80px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="ดูข้อมูล">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkMQueryShow" runat="server" 
                                                Checked='<%# Eval("MQuery")=true %>' Enabled="False" 
                                                Visible='<%# Eval("pro_MQuery")=true %>' />
                                        </ItemTemplate>
                                        <ItemStyle Width="50px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="ดูข้อมูล">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkMQuery" runat="server" 
                                                Checked='<%# Eval("MQuery")=true %>' Visible='<%# Eval("pro_MQuery")=true %>' />
                                        </ItemTemplate>
                                        <ItemStyle Width="50px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="เพิ่ม">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkMAddShow" runat="server" 
                                                Checked='<%# eval("MADD")=true %>' Enabled="False" 
                                                Visible='<%# eval("pro_MADD")=true %>' />
                                        </ItemTemplate>
                                        <ItemStyle Width="50px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="เพิ่ม">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkMAdd" runat="server" Checked='<%# eval("MADD")=true %>' 
                                                Visible='<%# eval("pro_MADD")=true %>' />
                                        </ItemTemplate>
                                        <ItemStyle Width="50px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="แก้ไข">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkModifyShow" runat="server" 
                                                Checked='<%# eval("MModify")=true %>' Enabled="False" 
                                                Visible='<%# eval("pro_MModify")=true %>' />
                                        </ItemTemplate>
                                        <ItemStyle Width="50px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="แก้ไข">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkModify" runat="server" 
                                                Checked='<%# eval("MModify")=true %>' 
                                                Visible='<%# eval("pro_MModify")=true %>' />
                                        </ItemTemplate>
                                        <ItemStyle Width="50px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="ลบ">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkDeleteShow" runat="server" 
                                                Checked='<%# eval("MDELETE")=true %>' Enabled="False" 
                                                Visible='<%# eval("pro_MDELETE")=true %>' />
                                        </ItemTemplate>
                                        <ItemStyle Width="50px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="ลบ">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkDelete" runat="server" 
                                                Checked='<%# eval("MDELETE")=true %>' 
                                                Visible='<%# eval("pro_MDELETE")=true %>' />
                                        </ItemTemplate>
                                        <ItemStyle Width="50px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="พิมพ์">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkPrintShow" runat="server" 
                                                Checked='<%# eval("mPrint")=true %>' Enabled="False" 
                                                Visible='<%# eval("pro_mPrint")=true %>' />
                                        </ItemTemplate>
                                        <ItemStyle Width="50px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="พิมพ์">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkPrint" runat="server" Checked='<%# eval("mPrint")=true %>' 
                                                Visible='<%# eval("pro_mPrint")=true %>' />
                                        </ItemTemplate>
                                        <ItemStyle Width="50px" />
                                    </asp:TemplateField>
                                </Columns>
                                <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#FFFFCC" Font-Bold="True" ForeColor="Navy" />
                                <HeaderStyle BackColor="#E38120" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" />
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
           
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

